package com.qzsoft.zhjd.machine.modules.machinefuel.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qzsoft.jeemis.common.annotation.Dict;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName MachineRefuelRecordsDto
 * @Description 设备加油记录
 * @author linhuawei
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class MachineRefuelRecordsDto {

    /**
     * 主键
     */
    private String id;

    /**
     * 原始记录主键
     */
    private String originalId;

    /**
     * 设备主键
     */
    private String machineId;

    /**
     * 设备编号
     */
    private String machineKey;

    /**
     * 机械名称
     */
    private String machineName;

    /**
     * 机械类型
     */
    @Dict(dicCodeField = "machineType", dictCodeId = "MACHINE_TYPE")
    private String machineType;

    /**
     * 机械一级分类
     */
    @Dict(dicCodeField = "machineCategory1", dictCodeId = "MACHINE_CATEGORY")
    private String machineCategory1;

    /**
     * 机械二级分类
     */
    @Dict(dicCodeField = "machineCategory2", dictCodeId = "MACHINE_CATEGORY")
    private String machineCategory2;

    /**
     * 机械品牌
     */
    @Dict(dicCodeField = "machineBrand", dictCodeId = "MACHINE_BRAND_MODEL")
    private String machineBrand;

    /**
     * 机械型号
     */
    @Dict(dicCodeField = "machineModel", dictCodeId = "MACHINE_BRAND_MODEL")
    private String machineModel;

    /**
     * 加油量
     */
    private BigDecimal volume;

    /**
     * 设备采集值
     */
    private BigDecimal collectVolume;

    /**
     * 设备采集时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date collectDate;

    /**
     * 人工校正值
     */
    private BigDecimal customVolume;

    /**
     * 人工校正日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date customDate;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

}
